//
//  WaterCell.m
//  Water
//
//  Created by yh on 2017/11/30.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import "WaterCell.h"

@implementation WaterCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setViewModel:(WaterCellModel *)viewModel{
    _viewModel = viewModel;
    self.imageView.image = [UIImage imageNamed:viewModel.imageName];
    self.titleLabel.text = [NSString stringWithFormat:@"%dml",viewModel.amount];
}

@end
